-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add LocalRuntime #5284
feat: Add LocalRuntime #5284
Conversation
…ntime - Add new LocalRuntime implementation that runs action_execution_server directly on host - Rename EventStreamRuntime to LocalDockerRuntime for clarity - Move runtime implementations to dedicated directories - Update documentation to reflect runtime changes
- Update imports to use LocalDockerRuntime and LocalRuntime - Add LocalRuntime to get_runtime_classes() - Update _close_test_runtime to handle LocalDockerRuntime
- Add proper type hints for server_process - Fix stdout access safety - Fix async/await type hints - Improve error handling
… LocalDockerRuntime
New OpenHands update |
@openhands-agent This PR tests fail with
Fix this error. Keep your changes minimal. |
@openhands-agent We have done a lot to fix the original. This PR is doing these:
The PR is mostly finished now. It has only one detail that went wrong: instead of the name LocalDockerRuntime, we now want the name DockerRuntime. Find all occurrences and fix them. Additionally, look also for the name EventStreamRuntime, and if you find any, update it to the new name, DockerRuntime. |
… LocalDockerRuntime
@xingyaoww I agree. I fought them too, and yes, I can confirm they can work locally on Mac. If you could take a look in conversations tab on github, it has some minor thoughts about errors/exceptions that I thought maybe we can discuss? |
I just wanted to thank you again for working on this PR! We've been regularly pulling this branch, and the local mode has been running great for us on Linux machines! 🙌 |
This reverts commit ac562b6.
Co-authored-by: Engel Nyst <[email protected]>
Co-authored-by: Engel Nyst <[email protected]>
Thanks @enyst for the comments! I believe I should've addressed them -- LMK if you have any other question/concerns here. This is ready for another review :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for this!
*makes a backup of the local machine
Let the fun begin 😂
This actually makes actually think we should add this to the warning lol |
Co-authored-by: openhands <[email protected]> Co-authored-by: Engel Nyst <[email protected]>
@xingyaoww How should I start a service locally using the Local Runtime instead of Docker Runtime? What are the specific commands and steps for executing this? |
All I had to do to use it is to set the runtime type to But best use is probably not local exactly, but on another machine than your machine, due to the risk. The LLM really can do anything under your user. |
Thank you, I will try to run it. |
This PR adds a new LocalRuntime implementation and renames EventStreamRuntime to LocalDockerRuntime for better clarity.
Changes
Benefits
Issue fixed: https://github.com/orgs/All-Hands-AI/projects/1?pane=issue&itemId=82616729&issue=All-Hands-AI%7COpenHands%7C3903
To run this PR locally, use the following command: